package mviewer.functions;

public class Rotation implements IFunction {

	public float renderY(int x) {
		return x < 0 ? 360f + x
					 : x > 360 ? x - 360f
							   : (float)x;
	}

	public int renderX(float y) {
		return (int)y;
	}

	public int getMinimum() {
		return 0;
	}

	public int getMaximum() {
		return 360;
	}
}
